<h1>Call</h1>

<p>Call is used to execute the actions previously assigned to a given frame 
with an DoAction command.</p>

<table>

<tr>
<th nowrap>Field Name</th>
<th>Type</th>
<th>Size</th>
<th>Description</th>
</tr>

<tr>
<td nowrap valign="top"><a name="ActionType">Type</a></td>
<td nowrap valign="top">unsigned int</td>
<td nowrap valign="top">8</td>
<td>Identifies the action when it is encoded.</td>
</tr>

<tr>
<td nowrap valign="top"><a name="ActionLength">Length</a></td>
<td nowrap valign="top">unsigned int</td>
<td nowrap valign="top">16</td>
<td>The number of bytes in the rest of the encoded action. The total number of
bytes in the encoded action is Length+3.</td>
</tr>

</table>

<P>The code for the Call action is 128 - codes 128 or higher are reserved for 
actions that contain arguments and so have a length field defined. However Call 
is a stack based action and so contains no arguments. As a result this field is 
always set to zero.</P>

<p>Call is a stack-based action, the value for the <i>frame name</i> (defined 
using a FrameLabel instruction) or <i>frame number</i> is retrieved from the top 
of the stack when it is executed.</p>

<h2>History</h2>

<p>The Call action is defined as the ActionCall action in the Macromedia Flash 
(SWF) File Format Specification. It was introduced in Flash 4.</p>
